//
//  XHF_MaterialTV.m
//  haojia
//
//  Created by 徐宏飞 on 16/4/15.
//  Copyright © 2016年 徐宏飞. All rights reserved.
//

#import "XHF_MaterialTV.h"

@interface XHF_MaterialTV () <UITableViewDelegate, UITableViewDataSource>

@end

@implementation XHF_MaterialTV

+(XHF_MaterialTV *)MaterialTableView{
    XHF_MaterialTV *materialTV = [[XHF_MaterialTV alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
    materialTV.delegate = materialTV;
    materialTV.dataSource = materialTV;
    
    [materialTV registerClass:[UITableViewCell class] forCellReuseIdentifier:@"materialTVC"];
    
    return materialTV;
    
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 50;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"materialTVC"];
    
    
    cell.textLabel.text = [NSString stringWithFormat:@"%ld", (long)indexPath.row];
    return cell;
    
}


@end
